Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the logic to get the field name #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zepich
Copy link
Contributor

@zepich zepich commented Apr 28, 2024

Hi @arnaud-ritti

I've reviewed the issue in #9 described by @Digi92 and added a fix for the logic.

I tried to replicate Symfony's method to generate the field name (https://github.com/symfony/form/blob/6.4/Extension/Core/Type/BaseType.php#L54).

I don't understand why the tests didn't fail. I can use both logics, and the tests work fine. Maybe Symfony behaves differently if you use an Entity as data for the form.

Kind regards,
zepich

Copy link

codesandbox bot commented Apr 28, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant